﻿CREATE TABLE [dbo].[codeCanceledReason] (
    [CanceledReasonID] INT          IDENTITY (1, 1) NOT NULL,
    [OwnerID]          INT          NULL,
    [Description]      VARCHAR (50) NOT NULL,
    [Active]           BIT          NOT NULL
);
GO
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Defines the cancel reasons.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCanceledReason';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'Definition for canceled reason', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCanceledReason',
	@level2type = N'COLUMN', @level2name = N'Description';
GO;
EXECUTE sp_addextendedproperty @name = N'MS_Description', @value = N'1 indicates that the code is active, 0 is inactive.', 
	@level0type = N'SCHEMA', @level0name = N'dbo',
	@level1type = N'TABLE', @level1name = N'codeCanceledReason',
	@level2type = N'COLUMN', @level2name = N'Active';

